<%-- 
    Document   : inscription
    Created on : 20 déc. 2012, 12:25:49
    Author     : CDI211
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="<c:url value="/inc/style.css" />" />
        <title>Inscription</title>
    </head>
    <body>
       <div id="header">
         <c:import url="/inc/header.jsp"/>
       </div> 
       <div id="article"> 
        <form method="post" action="<c:url value="/ctrl/inscription.jsp"/>">
            <input type="hidden" name="action" value="verification" />
            <fieldset>
                <legend>S'inscrire</legend>
                <label for="email">Identifiant : </label>
                <input type="email" name="emailinsc" id="emailinsc" value="<c:out value="${nvClient.cliLogin}"/>" size="20" maxlength="60"/>
                <c:out value="${form.erreurs['emailinsc']}"/>
                <br>
                <label for="mdp">Mot de passe :</label>
                <input type="password" name="mdpinsc" id="mdpinsc" size="20" maxlength="20"/>
                <c:out value="${form.erreurs['mdpinsc']}"/>
                <br>
                <label for="mdp">Confirmer mot de passe :</label>
                <input type="password" name="confmdp" id="confmdp" size="20" maxlength="20"/>
                <c:out value="${form.erreurs['confmdp']}"/>
                <br>
                <input type="submit" value="Valider"/>
                <input type="reset" value="Annuler"/>
            </fieldset>
        </form>
        <c:if test="${ATT_NVLOG}">            
            <form method="GET" action="<c:url value="/ctrl/inscription.jsp"/>">
                <input type="hidden" name="action" value="inscription" />
                <fieldset>
                    <legend>Formulaire d'inscription</legend>

                    <label for="mdp">Civilité :</label>
                    <select name="sexe">
                        <option>M.</option>
                        <option>Mlle.</option>
                        <option>Mme.</option>
                    </select>
                    <br>
                    <label for="nomcli">Nom :</label>
                    <input type="text" name="nomcli" id="nomcli" value="<c:out value="${nvClient.cliNom}"/>"/>
                    <c:out value="${form.erreurs['nomcli']}"/>
                    <br> 
                    <label for="prenom">Prénom :</label>
                    <input type="text" name="prenom" id="prenom" value="<c:out value="${nvClient.cliPrenom}"/>"/>
                    <c:out value="${form.erreurs['prenom']}"/>
                    <br> 
                    <label for="datenais">Date de naissance :</label>
                    <input type="text" name="datenais" id="datenais" value="<c:out value="${nvClient.cliDateN}"/>"/>
                    <c:out value="${form.erreurs['datenais']}"/>
                    <br> 
                    <label for="email2">Identifiant : </label>
                    <input type="email2" name="emailinsc2" id="emailinsc2" value="<c:out value="${nvClient.cliLogin}"/>" readonly/>
                    <br>
                    <label for="mdp2">Mot de passe :</label>
                    <input type="password"  name="mdpinsc2" id="mdpinsc2" value="<c:out value="${nvClient.cliMdp}"/>" readonly />
                    <br>
                    <input type="checkbox" name="newsletter"/> Je m'abonne à la newsletter 
                    <br> 
                    <input type="submit" value="Valider"/>
                    <input type="reset" value="Annuler"/>
                    <br>
                    <c:out value="${form.erreurs['erreur']}"/>
                </fieldset>
            </form>
        </c:if>
       </div>
       <div id="nav">
          <c:import url="/inc/nav.jsp"/>
       </div>
       <div id="footer">
          <c:import url="/inc/footer.jsp"/>
       </div>          
    </body>
</html>
